﻿using Nop.Web.Framework.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Nop.Web.Models.Customer
{
    public class CustomerListModel
    {
        public CustomerListModel() {
            this.CustomerRoles = new List<ItemModel>();
            this.SelectedCustomerRoleIds = new List<int>();
            this.Departments = new List<ItemModel>();
        }
        public string Username { get; set; }
        public string TrueName { get; set; }
        public int DepartmentId { get; set; }
        public IList<int> SelectedCustomerRoleIds { get; set; }
        public IList<ItemModel> CustomerRoles { get; set; }
        public IList<ItemModel> Departments { get; set; }
    }
    public class ItemModel
    {
        public string key { get; set; }
        public string value { get; set; }
    }
    public class CustomerModel
    {
        public CustomerModel()
        {
            this.SelectedCustomerRoleIds = new List<int>();
            this.Location = new List<string>();
        }
        public int key { get; set; }
        public string Username { get; set; }
        public string TrueName { get; set; }
        public string TelPhone { get; set; }
        public int DepartmentId { get; set; }
        /// <summary>
        /// 所在地呢
        /// </summary>
        public List<string> Location { get; set; }
        [NoTrim]
        public string Password { get; set; }
        public IList<int> SelectedCustomerRoleIds { get; set; }
        public bool Active { get; set; }
        public string CustomerRoleNames { get; set; }
        public string DepartmentName { get; set; }
        public DateTime CreatedOn { get; set; }
    }
}